<template>
	<view class="box">
		<view class="tiem">
			{{date}}
		</view>
		<view class="list" v-for="(item,index) in list" :key="index">
			<view class="card">
				<view class="title">
					<u-icon :name="item.name" :label="item.title" size="26" color="#bc273c"></u-icon>
					<view>
						+{{item.money}}
					</view>
				</view>
				
				<view class="date">
					<view>
						{{item.tiem}}
					</view>
					<view>
						支付日期{{item.paytiem}}
					</view>
				</view>
				<view class="tag_box">
					<view class="tag">
						已支付
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				date:'房租收取记录共一个月',
				list: [
					{
						tiem: '2023-12-31 11:13:46',
						rent: '岳国平--租金：800.00元',
						title:'租金',
						name:'red-packet-fill',
						money:'1,832.00',
						paytiem:'2023-08-31',
						community: '上海御花园3幢/栋1单元903室',
						prompt: '将在2024年1月1日租金到期，请及时关注收租情况!'

					},
					{
						tiem: '2023-12-31 11:13:46',
						rent: '岳国平--租金：800.00元',
						title:'租金',
						name:'red-packet-fill',
						money:'1,832.00',
						paytiem:'2023-08-31',
						rent: '岳国平--租金：800.00元',
						community: '上海御花园3幢/栋1单元903室',
						prompt: '将在2024年1月1日租金到期，请及时关注收租情况!'

					},
					{
						tiem: '2023-12-31 11:13:46',
						rent: '岳国平--租金：800.00元',
						title:'租金',
						name:'red-packet-fill',
						money:'1,832.00',
						paytiem:'2023-08-31',
						rent: '岳国平--租金：800.00元',
						community: '上海御花园3幢/栋1单元903室',
						prompt: '将在2024年1月1日租金到期，请及时关注收租情况!'

					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	@import "~@/styles/index.scss";
	@import "~@/styles/global.scss";

	.box {
		@include pageInit;
		font-size: 28rpx;
		min-height: 100vh;
		.tiem {
			text-align: center;
			color: #ccc;
			padding-top: 20rpx;
		}
		.list {
			margin: 20rpx 0;
			.card {
				padding: 20rpx;
				border-radius: 10rpx;
				background-color: #fff;
				.title{
					@include flexBetween;
					font-weight: bold;
				}
				.date{
					@include flexBetween;
					color: $noimportant;
					padding: 10rpx 0;
					
				}
				.tag_box {
					display: flex;
					align-items: center;
					justify-content: flex-end;
					margin: 30rpx 0 0 30rpx;
					.tag {
						background-color: #fce1e1;
						color: #6f6f6f;
						font-size: 24rpx;
						padding: 5rpx 10rpx;
						border-radius: 5rpx;
					}
				}
			}
		}

	}
</style>